package com.micro.service.auth.server.utils;

import com.alibaba.fastjson.serializer.PropertyFilter;

public class PropertyFilterUtil {
	private static PropertyFilter filter;
	public static PropertyFilter commonFilter(){
		if (filter == null) {
			filter = new PropertyFilter() {
				
				@Override  
		        public boolean apply(Object object, String name, Object value) {  
		            if("msgenum".equalsIgnoreCase(name)){
		                //false表示last字段将被排除在外  
		                return false;  
		            }  
		            return true;  
		        }  
			};
		}
		return filter;
	}
}
